From e33dc0c17f314f2dd9a82ccff38ce209e3015525 Mon Sep 17 00:00:00 2001 From: Sergio Santoro Date: Sun, 13 Jul 2014 00:12:21 +0200 Subject: [PATCH] WebInstaller::setVarsFromRequest() do not trim passwords Bug: 30524 Change-Id: Ide30c9078ae8cbf97a6f86c4e230f44ce8382a1f --- includes/installer/WebInstaller.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index 46348f917c..c4e35e9afb 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -1051,7 +1051,11 @@ class WebInstaller extends Installer { $newValues = array(); foreach ( $varNames as $name ) { - $value = trim( $this->request->getVal( $prefix . $name ) ); + $value = $this->request->getVal( $prefix . $name ); + // bug 30524, do not trim passwords + if ( stripos( $name, 'password' ) === false ) { + $value = trim( $value ); + } $newValues[$name] = $value; if ( $value === null ) { -- 2.20.1